﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
     class Tiejiangnpc:FatherNPC
    {
        private string tie;

        public string Tie
        
        {
            get { return this.tie; }
            set { this.tie = value; }
        }

        public Tiejiangnpc(string name, Styolenpc styolenpc,string tie):base(name, styolenpc) 
        {
            this.tie = tie;

        }

        public override void speaking()
        {
            Console.WriteLine("NPC:{0}，要{1}吗", base.Name,this.tie);
        }
    }
}
